<h2><?php echo $this->translate('Advanced Search') ?></h2>
<form id = "search_form" onsubmit="return getListMods()" class="search_form" method="post" action="<?php echo $this->url();?>">
	<div id="searchform" class="global_form_box">
	<input type="hidden" name="listmods" id="listmods" value ="" />
	<input id="query" type="text" value="<?php echo $this->query?>" name="query">
	</div>
	<div class = "button_submit_2">
	<button id="submit" type="submit" name="submit" value="submit"><?php echo $this->translate('Search');?></button>
	</div>
</form>
<style type="text/css">
.button_submit_2  {
	float: left;
	padding-left: 10px;
}
</style>

<script type="text/javascript">
function getListMods() {
	var selected_mods = [];
	$$('input.mods_checkbox').each(function(item){
		var checked = item.get('checked', false);
	    var value = item.get('name', false);
	    if (checked == true){
	    	selected_mods.push(value);
	    }
    });
	$('listmods').value = selected_mods;
}
</script>